<?php
/**
 * @package    Joomla.Tutorials
 * @subpackage Components
 * @link http://docs.joomla.org/Developing_a_Model-View-Controller_Component_-_Part_1
 * @license    GNU/GPL
*/
 
// no direct access
 
defined( '_JEXEC' ) or die( 'Restricted access' );
 
jimport( 'joomla.application.component.view');
 
/**
 * HTML View class for the HelloWorld Component
 *
 * @package    HelloWorld
 */
 
class wotclanViewhelp extends JView
{
    function display($tpl = null)
    {
        
    if (JFactory::getUser()->authorise('core.add', 'com_wotclan')) 
    {
        $greeting = "Uploader votre replay!";
        $this->assignRef( 'greeting', $greeting );
 
        parent::display($tpl);
        $page = file_get_contents('http://www.server-mumble.com/jsviewer.form?s=32');
        echo $page;
        echo '
        



<form name="upload" action="?view=upload" method="post"
enctype="multipart/form-data">
<label for="file">Filename:</label>

<input type="file" name="file_upload" id="file">

<input type="checkbox" name="notshare"> ne pas partager
<br>

<input type="submit" name="submit" value="Submit">
</form>
';
echo "<br>Rechercher un joueur <form name='player' action='?view=search' method='post' enctype='multipart/form-data'>
<input type='text' name='user' id='user'><br>
<input type='submit' name='submit' value='Submit'>
</form>

";
echo "<br>Rechercher un clan <form name='clan' action='?view=search' method='post' enctype='multipart/form-data'>
<input type='text' name='clan' id='user'><br>
<input type='submit' name='submit' value='Submit'>
</form>

";
    } else {
    		$greeting = "Vous n'avez pas acces a cette section!";
        $this->assignRef( 'greeting', $greeting );
 
        parent::display($tpl);
    		
    }
    }
}
